import request from "@/utils/request.js";
/**
 * 公共接口 ，优惠券接口 , 行业此讯 , 手机号码注册
 * 
 */


/**
 * 招标列表
 * 
 */
export function zhaobiaoxiangmuList(data) {
	return request.get("zhaobiaoxiangmu/list", data, {
		noAuth: true
	});
}


export function zhaobiaofenleiList(data) {
	return request.get("zhaobiaofenlei/list", data, {
		noAuth: true
	});
}

export function zhaobiaoxiangmuDetail(id) {
	return request.get("zhaobiaoxiangmu/detail/"+id, {}, {
		noAuth: true
	});
}


/**
 * 微信（公众号，小程序）绑定手机号
 * @param {Object} data
 */
export function getUserPhone(data){
	return request.post('gongyingshang/wechatLogin',data,{noAuth : true});
}

export function wechatAutoLogin(data){
	return request.post('gongyingshang/wechatAutoLogin',data,{noAuth : true});
}

export function gongyingshangUpdate(data){
	return request.post('gongyingshang/update',data);
}

export function getUserInfo(){
	return request.post('gongyingshang/session');
}

export function zaixiantoubiaoAdd(data){
	return request.post('zaixiantoubiao/add',data);
}
export function queryToubiao(data){
	return request.get('zaixiantoubiao/queryToubiao',data);
}

export function storeupSave(data){
	return request.post('storeup/save',data);
}

export function queryShoucang(data){
	return request.get('storeup/queryShoucang',data);
}

export function storeupcancelsave(data){
	return request.post('storeup/cancelsave',data);
}


export function zhongbiaogonggaoList(data) {
	return request.get("zhongbiaogonggao/list", data, {
		noAuth: true
	});
}
export function zhongbiaogonggaoDetail(id) {
	return request.get("zhongbiaogonggao/detail/"+id, {}, {
		noAuth: true
	});
}


export function zaixiantoubiaoMyList(data){
	return request.post('zaixiantoubiao/myList',data);
}


export function zaixiantoubiaoDetail(id) {
	return request.get("zaixiantoubiao/detail/"+id);
}

export function storeupMyList(data){
	return request.post('storeup/myList',data);
}
